package com.mco.socket.bs;

import cn.hutool.core.util.IdUtil;
import org.apache.log4j.net.SocketServer;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author ：liao.wei
 * @date ：2023/10/7 14:34
 * @package : com.mco.socket
 */
public class RedisServer {
	public static void main(String[] args) throws IOException {
		ServerSocket socketServer=new ServerSocket(6688);
		while (true){
			System.out.println("模拟Redis server启动 -- 等待连接");
			Socket socket=socketServer.accept();
			System.out.println("客户端连接成功--"+ IdUtil.simpleUUID());
			System.out.println("----------------------");
		}
	}
}
